package com.zxk.blog.controller;

import com.zxk.core.common.util.JsonData;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api("登录控制")
@RestController
@RequestMapping("/blog/api")
public class LoginController {

    @PostMapping("/login")
    public JsonData login(@RequestParam String name,@RequestParam String pwd){
        System.out.println(name+"**********"+pwd);
     return JsonData.buildSuccess(null,200);
    }
}
